package com.glory.brepda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.LotStopproductEntity;
import com.glory.brepda.entity.LotSubmissionEntity;

import java.util.List;

public class LotStopproductAdapter extends BaseQuickAdapter<LotStopproductEntity, BaseViewHolder> {

    public LotStopproductAdapter(@Nullable List<LotStopproductEntity> data) {
        super(R.layout.adapter_lot_submissionhis,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LotStopproductEntity item) {
        helper.setText(R.id.tvLotID,item.getLOT().getLOTID())
                .setText(R.id.tvState,item.getLOTSTATE().equals("STOP")?"已暂停":"已放行");

    }
}
